{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
    <div class="row">
   	 <div class="col-sm-3 col-md-2 sidebar">
	     <ul class="nav nav-sidebar">
	
		{% if session['role'] in ['review', 'super'] %}
                <li id="nav_review">
			<a href="{{ url_for('car.review_list') }}">审核车源</a>
		</li>
		{% endif %}

		{% if session['role'] in ['upload', 'super'] %}
		<li id="nav_car">
		    <a href="#CarMenu" data-toggle="collapse">车源</a>
		    <ul id="CarMenu" class="nav nav-list collapse col-md-offset-1" >
                        <li id="li_upload"><a href="{{ url_for('car.upload', car_type='old') }}">上传车源</a></li>
                        <li id="li_on_sale"><a href="{{ url_for('car.sale_list') }}">在售车源</a></li>  
                    </ul>
                </li>
		<li id="nav_rent">
		    <a href="{{ url_for('other.other_list', btype='rent') }}">租车</a>
		</li> 
		<li id="nav_finance">
		    <a href="{{ url_for('other.other_list', btype='finance') }}">金融</a>
		</li> 
		<li id="nav_service">
		    <a href="{{ url_for('other.other_list', btype='service') }}">服务</a>
		</li> 
		{% endif %}
	     </ul>
	 </div>
	 <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
   	 	{% for message in get_flashed_messages() %}
		<div class="alert alert-warning">
        		<button type="button" class="close" data-dismiss="alert">&times;</button>
	        	{{ message }}	
		 </div>
		{% endfor %}
		
		{% block page_content %}

		{% endblock %}
	 </div>
    </div>
</div>
{% endblock %}
